﻿<UserControl x:Class="ETRobocon.RaceTraking.GamePresentation.UserControlTimeCounter"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:src="clr-namespace:ETRobocon.RaceTraking.GamePresentation"
    Height="85" Width="425">
    <UserControl.Resources>
    	<ResourceDictionary>
    		<ResourceDictionary.MergedDictionaries>
    			<ResourceDictionary Source="Styles/ResourceDictionary.xaml"/>
    		</ResourceDictionary.MergedDictionaries>
    	
	        <Style TargetType="TextBlock">
	            <Setter Property="FontSize" Value="72"/>
	            <Setter Property="VerticalAlignment" Value="Center"/>
	            <Setter Property="HorizontalAlignment" Value="Center"/>
	            <Setter Property="Foreground" Value="Gold"/>
	        </Style>
			
	        <src:InternalStopWatch x:Key="stopWatch"/>
			<src:TimeCountFaceInfo x:Key="FaceInfo"/>
	        
		</ResourceDictionary>
    </UserControl.Resources>
	
    <Grid Background="{DynamicResource NumberBoxBigImage}">
    	
		<Grid Margin="50,15,50,0" DataContext="{Binding Source={StaticResource stopWatch}}">
    		<Grid.ColumnDefinitions>
    			<ColumnDefinition Width="*"/>
    			<ColumnDefinition Width="*"/>
    			<ColumnDefinition Width="20"/>
    			<ColumnDefinition Width="*"/>
    			<ColumnDefinition Width="*"/>
    			<ColumnDefinition Width="20"/>
    			<ColumnDefinition Width="*"/>
    		</Grid.ColumnDefinitions>
    		<TextBlock x:Name="textBoxMH" Grid.Column="0" Text="{Binding MinH}" Foreground="{DynamicResource FontColorBrush04}" FontFamily="{DynamicResource MainFont}" FontWeight="Bold"/>
    		<TextBlock x:Name="textBoxML" Grid.Column="1" Text="{Binding MinL}" Foreground="{DynamicResource FontColorBrush04}" FontFamily="{DynamicResource MainFont}" FontWeight="Bold"/>
    		<TextBlock x:Name="textBoxSH" Grid.Column="2" Text=":" Foreground="{DynamicResource FontColorBrush04}" FontFamily="{DynamicResource MainFont}" FontWeight="Bold"/>
    		<TextBlock x:Name="textBoxSL" Grid.Column="3" Text="{Binding SecH}" Foreground="{DynamicResource FontColorBrush04}" FontFamily="{DynamicResource MainFont}" FontWeight="Bold" />
    		<TextBlock x:Name="textBoxSD" Grid.Column="4" Text="{Binding SecL}" Foreground="{DynamicResource FontColorBrush04}" FontFamily="{DynamicResource MainFont}" FontWeight="Bold" />
    		<TextBlock Grid.Column="5" Text="." Foreground="{DynamicResource FontColorBrush04}" FontFamily="{DynamicResource MainFont}" FontWeight="Bold" />
    		<TextBlock Grid.Column="6" Text="{Binding SecD}" Foreground="{DynamicResource FontColorBrush04}" FontFamily="{DynamicResource MainFont}" FontWeight="Bold" />
    	</Grid>
	</Grid>
</UserControl>
